# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
  def expiration_month
    result = "<option>--</option>"
    1.upto(12) do |month|
      result << "<option>#{month}</option>"
    end
    result
  end
  
  def expiration_year
    result = "<option>----</option>"
    2008.upto(2020) do |year|
      result << "<option>#{year}</option>"
    end
    result
  end
end
